package gen

import (
	"github.com/kataras/iris/mvc"
	"github.com/kataras/iris/context"
	"cn.pinming/gencode/modules/gen/controller"
	"cn.pinming/gencode/core/logs"
)

func InitRounter(app *mvc.Application) {

	genApp:=app.Party("/gen", func(ctx context.Context) {
		logs.Debugf("代码生成模块入口:%s",ctx.Request().RequestURI)
		ctx.Next()
	})
	genApp.Handle(new(controller.GencodeController))
	genApp.Handle(new(controller.ConsoleController))
	genApp.Handle(new(controller.GenTemplateController))
}